<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>主页</title>
<link rel="shortcut icon" href="favicon.ico">
<!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>

</head>

<body>
	<input class="form-control"  id="name">
	<button  onclick="load()" class="btn btn-success" >加载数据</button>
	
	<ul id="box" >
		
	</ul>
	
	
	
</body>
<script type="text/javascript">

	
function load(){
	var userName=$("#name").val();
	var param={
			c:true,
			a:true,
			p:{name:userName},
	};
	$.AjaxProxy(param).invoke("${path}/admin/showList",function(loj){
		
		var html="";
		
		for(var i=0 ; i<loj.getRowCount(); i++ ){
			html+=	
			
			'<li>头像：'+loj.getImg(i,"photo",200,100)
			
			+'手机号码：'+loj.getString(i,"tel")

			+'生日：'+loj.getDate(i,"birthday")
			
			+'账号状态：'+loj.getSwitch(i,"isDeleted","{N:'否',Y:'是',empty:'状态未知'}")+'</li>'
		}
		
		$("#box").html(html);
		
	});
	
}
	
	


</script>
</html>







